package com.dong.auth.security.authentication.holder;

import com.dong.auth.security.authentication.Authentication;

public class DongAuthenticationHolder {

    private static final DongAuthenticationHolderStrategy authenticationHolderStrategy = new ThreadLocalAuthenticationHolderStrategy();


    public static void clear() {
        authenticationHolderStrategy.clear();
    }

    public static Authentication get() {
        return authenticationHolderStrategy.get();
    }

    public static void set(Authentication context) {
        authenticationHolderStrategy.set(context);
    }

    public static Authentication create() {
        return authenticationHolderStrategy.create();
    }
}
